package com.gt.web.srv.web.api.command;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @Author jh
 * @Date 2024/5/25 11:15
 * @PackageName:com.gt.web.srv.web.api.command
 * @ClassName: ConsultCommand
 * @Description: 居民评议提交入参
 */
@Data
@ApiModel(description = "居民评议提交入参")
public class ConsultCommand {

    private Integer anonymous;
    private Long toId;
    /**
     * 来自谁的提问 关联peop_id
     */
    private Long fromId;

    private Long communityId;
    /**
     * 居民评议类型 0：咨询，1：建议，2：投诉
     */
    @ApiModelProperty(value = "居民评议类型 0：咨询，1：建议，2：投诉,3",required = true)
    @NotNull(message = "居民评议类型 0：咨询，1：建议，2：投诉")
    private Integer type;


    @ApiModelProperty(value = "咨询内容",required = true)
    @NotBlank(message = "内容")
    private String content;

    /**
     * 图片地址
     */
    @ApiModelProperty(value = "图片地址",required = true)
    @NotBlank(message = "凭证")
    private String picUrl;
}
